
# n = int(input())
# num = 1
# count = 1
# cnt=[0, 0, 0, 0]
# while count <= n:
#     if num % 7 == 0 or '7' in str(num):
#         cnt[(num - 1) % 4] += 1
#     else:
#         count += 1
#     num += 1
# for i in range(4):
#     print(cnt[i])


import matplotlib.pyplot as plt

# 成绩数据
class_A_scores = [78, 85, 86, 92, 95, 88, 73, 68, 81, 77, 84, 89]
class_B_scores = [65, 70, 72, 75, 80, 78, 85, 88, 90, 95, 98, 100]

# 绘制盒图
plt.boxplot([class_A_scores, class_B_scores], labels=['Class A', 'Class B'])
plt.title('Exam Scores Distribution')
plt.ylabel('Scores')
plt.grid(True)
plt.show()
